home *** CD-ROM | disk | FTP | other *** search
- trace(" _root.SoundStop = " + _root.SoundStop + " _root.Sound_con. = " + _root.Sound_con.getVolume());
- if(_root.SoundStop == undefined)
- {
- this.gotoAndStop(1);
- _root.Sound_con.setVolume(100);
- }
- else if(_root.SoundStop == false || _root.Sound_con.getVolume() == 0)
- {
- this.gotoAndStop(2);
- _root.Sound_con.setVolume(0);
- }
- this.onPress = function()
- {
- trace(" _root.SoundStop = " + _root.SoundStop);
- if(_root.SoundStop == undefined)
- {
- _root.Sound_con.setVolume(0);
- _root.SoundStop = false;
- this.gotoAndStop(2);
- }
- else if(_root.SoundStop == false)
- {
- _root.Sound_con.setVolume(100);
- _root.SoundStop = null;
- this.gotoAndStop(1);
- }
- };
-